package week08.company;

/**
 * Created by zhangxiaokun on 2018/3/20.
 */
public class Finacial implements Department {
    private Mediator mediator;
    private String dname = DepartmentName.Finacial;

    public Finacial(Mediator mediator) {
        this.mediator = mediator;
        mediator.register(dname, this);
    }


    @Override
    public void selfAction() {
        System.out.println("...数钱....");
    }

    @Override
    public void outAction() {
        System.out.println("...汇报工作！钱太多了！怎么花？");
//        mediator.command("");
    }
}
